package com.htz.agency.pojo.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author tang
 * @date 2025年06月27日 21:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AnnouncementDTO {
    @TableId
    private Long id;


    private String title;


    private String content;


    private Integer categoryId;


    private Integer adminId;


    private Integer isActive ;

    private LocalDateTime startTime;

    private LocalDateTime endTime;


    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
